package com.rin.entity;

import com.rin.annotation.FillAuthor;
import com.rin.annotation.FillId;
import com.rin.annotation.FillTime;
import com.rin.constant.IdType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author RinMi
 * @since 2023/6/15
 */

@Data
public class User {

    @FillId(value = IdType.AUTO_INCREMENT)
    private Long userId;

    private String username;

    @FillAuthor(value = {"insert"})
    private String createBy;

    @FillTime(value = {"insert"})
    private LocalDateTime createTime;

    @FillAuthor(value = {"update"})
    private String updateBy;

    @FillTime(value = {"update"})
    private LocalDateTime updateTime;

    private String remark;
}
